package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.EvaluationRequest;
import com.ytjj.qmyx.admin.model.response.EvaluationProductResponse;
import com.ytjj.qmyx.mall.model.EvaluationProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface EvaluationProductDao {

    List<EvaluationProductResponse> selectList(EvaluationRequest evaluationRequest);

    Integer insertEvaluation(EvaluationProduct evaluationProduct);

    EvaluationProduct getEvaluation(Integer id);

    Integer updateStatus(@Param("id") Integer id, @Param("status") Integer status);

    Integer updateEvaluation(EvaluationProduct evaluationProduct);

    Integer isExists(Integer bankerProductId);

    Integer getZeroCount(Integer bankerId);

    Integer getActivityType(Integer bankerProductId);

    void updateBankerSpecial(@Param("bankerProductId") Integer bankerProductId,
                             @Param("bankerColumnId") Integer bankerColumnId);

    void updateEvaluationStatus(@Param("userId") Integer userId, @Param("productId") Integer productId);

    void updateFallow(@Param("id") Integer id, @Param("status") int status);

    //EvaluationProductMatching getEvaluationProductMatchingByProductId(@Param("productId") Integer productId);

}
